package top.yxqz.number2.entity;

/**
 * @author: 余小小
 * @date: 2023/9/18
 * @description：用户实体类---数据库字段对应（伪造数据）
 * ptg插件
 * JavaBean
 * SQL语句
 */
public class User {

    //    用户名
    private String usrName;
    //    密码
    private String password;
    //    年龄
    private Integer age;


    public User() {
    }

    public User(String usrName, String password, Integer age) {
        this.usrName = usrName;
        this.password = password;
        this.age = age;
    }

    /**
     * 获取
     * @return usrName
     */
    public String getUsrName() {
        return usrName;
    }

    /**
     * 设置
     * @param usrName
     */
    public void setUsrName(String usrName) {
        this.usrName = usrName;
    }

    /**
     * 获取
     * @return password
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设置
     * @param password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 获取
     * @return age
     */
    public Integer getAge() {
        return age;
    }

    /**
     * 设置
     * @param age
     */
    public void setAge(Integer age) {
        this.age = age;
    }

    public String toString() {
        return "User{usrName = " + usrName + ", password = " + password + ", age = " + age + "}";
    }
}
